<template>
  <div class='header'>
    <div class='header-left'>
      <div class='iconfont back-icon'>&#xe600;</div>
    </div>
    <div class='header-input'>
      <span class='iconfont'>&#xe631;</span>
      <input class='input' placeholder='输入景点主题' >
    </div>
    <router-link to='/city'>
      <div class='header-right'>
        {{this.$store.state.city}}
        <span class='iconfont arrow-icon'>&#xe601;</span>
      </div>
    </router-link>
  </div>
</template>

<script>
// import {mapState} from 'vuex'
export default {
  name: 'HomeHeader'
  // computed: {
  //   defaultCity
  // }
}
</script>

<style lang='stylus' scoped>
  @import '~styles/varibles.styl'
  .header
    display: flex
    height: $headerHeight
    line-height: $headerHeight
    background: $bgColor
    color: #fff
    .header-left
      width: .64rem
      float: left
      text-align: center
      .back-icon
        font-size: .4rem
    .header-input
      flex: 1
      background: #fff
      border-radius: .1rem
      margin-top: .12rem
      height: .64rem
      line-height: .64rem
      margin-left: .2rem
      color: #ccc
      padding-left: .2rem
      .iconfont
        vertical-align: middle
      // .input
      //   // width: 5.4rem
      //   display: inline-block;
    .header-right
      min-width: 1.04rem
      padding: .1rem
      float: right
      text-align:center
      color: white
      .arrow-icon
        margin-left: -.04rem
        font-size: .24rem
</style>
